package exception.player;

import valueObjects.game.Player;
import valueObjects.game.card.door.CurseCard;

public class CurseInvalidException extends Exception {

	private static final long serialVersionUID = 1L;

	/**
	 * Is thrown when a curse card has no effect on the player.
	 * @param c
	 * @param p
	 */
	public CurseInvalidException(CurseCard c, Player p){
		super("Die Karte '" + c.getLabel() + "' hatte keinen Einfluss auf den Spieler " + p.getName() + ".");
	}
}
